
public class TestTicket {

    public static void main(String[] args) {
        ITicket ticket = TicketFactory.getTicketInfo("深圳", "广州");
        ticket.info();

        ticket = TicketFactory.getTicketInfo("深圳", "广州");
        ticket.info();

        ticket = TicketFactory.getTicketInfo("深圳", "北京");
        ticket.info();
    }
}